package com.yxe.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author yang
 * @since 2022-12-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("tb_room")
@ApiModel(value="Room对象", description="")
public class Room implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "房间id")
    @TableId(value = "room_id", type = IdType.AUTO)
    private Integer roomId;

    @ApiModelProperty(value = "房间图片")
    private String roomImg1url;

    @ApiModelProperty(value = "房间图片")
    private String roomImg2url;

    @ApiModelProperty(value = "房间图片")
    private String roomImg3url;

    @ApiModelProperty(value = "房间图片")
    private String roomImg4url;

    @ApiModelProperty(value = "房间名称")
    private String roomName;

    @ApiModelProperty(value = "房租")
    private String roomRent;

    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "入住时间")
    private LocalDateTime beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "退租时间")
    private LocalDateTime leaveTime;

    @ApiModelProperty(value = "押金方式")
    private String depositMode;

    @ApiModelProperty(value = "水费")
    private String waterRate;

    @ApiModelProperty(value = "电费")
    private String electricityBill;

    @ApiModelProperty(value = "燃气费")
    private String gasBill;

    @ApiModelProperty(value = "物业")
    private String propertyRate;

    @ApiModelProperty(value = "交租时间")
    private String payTime;

    @ApiModelProperty(value = "房源id")
    private Integer houseId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;


}
